package com.iwhalecloud.bss.kite.cucc.web.controller.customerOrderInformation;

import com.iwhalecloud.bss.kite.client.dto.DataResult;
import com.iwhalecloud.bss.kite.common.constant.ErrorConsts;
import com.iwhalecloud.bss.kite.cucc.client.api.customerOrderInformation.IGroupMemberService;
import com.iwhalecloud.bss.kite.cucc.client.dto.cust.MemberInfoReq;
import com.iwhalecloud.bss.kite.cucc.client.vo.cust.MemberInfoVO;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Classname GroupMemberController
 * @Description 成员用户信息查询
 * @Author zhang.song
 * @Date 2021-04-19 21:42
 */
@RestController
@RequestMapping("/groupMember")
@Api(tags = {"/groupMember - 成员用户信息查询"})
public class GroupMemberController {

    @Autowired
    private IGroupMemberService groupMemberService;

    @PostMapping("/qryGrpMemberInfo")
    public DataResult<MemberInfoVO> qryGrpMemberInfo(@RequestBody MemberInfoReq memberInfoReq) {
        return ErrorConsts.SUCCESS.getResult(groupMemberService.qryGrpMemberInfo(memberInfoReq));
    }
}
